// pages/demo12/demo12.js
Page({

     /**
      * 页面的初始数据
      */
     data: {
          // text_html比较常用，arr_html过于复杂不直观
          text_html:'<a target="_blank" href="http://s.click.taobao.com/t?spm=0.0.0.0.0_0.0.0.0&amp;e=m%3D2%26s%3DFl0vJlnGe5UcQipKwQzePCperVdZeJviK7Vc7tFgwiFRAdhuF14FMazBupaR3CCG08qJM1kPvQriCpeCUkeJc8tA8Qks8BYBXdZXtfxfyx18isIqg9litAZn%2By0keumoEC8RQAClYWM0VQjy9y0sgCGFCzYOOqAQ&amp;pid=mm_0_0_0"> <img src="https://img.alicdn.com/tfs/TB1wK0biNv1gK0jSZFFXXb0sXXa-228-126.gif" width="119" height="61"></a>',
          arr_html:[
               {    
                   //1.div标签 name 属性来指定
                    name:'div',
                   //2.标签上有哪些属性
                    attrs:{   
                         //标签上的属性
                         class:"my_div",
                         style:"color:red;"
                    },
                    //子节点,children要接收的数据类型和nodes第二种渲染方式的数据类型一致
                    children:[
                         {
                              name:"p",
                              attrs:{},//这里的是p标签身上的属性
                              children:[
                                   {
                                        type:"text",
                                        text:"hello wx-app"
                                   }
                              ]
                              
                         }
                    ]
               }
          ]
     }

     
})